<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="Generator" content="WUKONG 1.0" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="Keywords" content="<?php echo $this->_var['keywords']; ?>" />
<meta name="Description" content="<?php echo $this->_var['description']; ?>" />

<title><?php echo $this->_var['page_title']; ?></title>

<link rel="shortcut icon" href="favicon.ico" />
<link rel="icon" href="animated_favicon.gif" type="image/gif" />
<link href="<?php echo $this->_var['ecs_css_path']; ?>" rel="stylesheet" type="text/css" />
<link href="<?php echo $this->_var['ecs_css_path_hgs']; ?>" rel="stylesheet" type="text/css" />
<link href="<?php echo $this->_var['ecs_css_path_users']; ?>" rel="stylesheet" type="text/css" />


<?php echo $this->smarty_insert_scripts(array('files'=>'jquery-1.7.1.min.js,jquery.json.js,jquery.form.min.js,hgsuser.js,transport.js,hgscommon.js,hgsstyle.js')); ?>

</head>
<body>
<div class="main">
	<div class="dw_head"></div>
<div class="dw_nav" name="dw_nav" id="dw_nav"></div>
	<div class="mainbg" name="MainName">
		<?php echo $this->fetch('library/page_header.lbi'); ?>
	
	<div class="product">
		
			<?php echo $this->fetch('library/ur_here.lbi'); ?>
 
		
		           
		
        <?php if ($this->_var['action'] == 'order_detail'): ?>
        
        	
            <div class="dd_buzhou_txt">
                <div class="dd_buzhou_txt_lie">提交订单</div>
                <?php if ($this->_var['order']['pay_name'] == "货到付款"): ?>
                    <div class="dd_buzhou_txt_lie">订单确认</div>
                <?php else: ?>
                    <div class="dd_buzhou_txt_lie">付款成功</div>
                <?php endif; ?>
                <div class="dd_buzhou_txt_lie">等待收货</div>
                <div class="dd_buzhou_txt_lies">完成</div>
            </div>
			
            
            <div class="dd_buzhou_txt_img">
				<?php if ($this->_var['order']['order_status'] == 0): ?>
				<img src="themes/default/images/status1.jpg" />
				<?php elseif ($this->_var['order']['order_status'] == 1 || $this->_var['order']['order_status'] == 5): ?>
				<img src="themes/default/images/status2.jpg" />
				<?php elseif ($this->_var['order']['order_status'] == 2): ?>
				<img src="themes/default/images/status4.jpg" />
				<?php endif; ?>
			</div>
			
            
            <div class="dd_xiangqing_times">
                <div class="dd_xiangqing_time_txt"><?php echo $this->_var['order']['add_time']; ?></div>
                <div class="dd_xiangqing_time_txt">
                    <?php if ($this->_var['order']['pay_name'] == "货到付款"): ?>
                        <?php echo $this->_var['order']['confirm_time']; ?>
                     <?php else: ?>
                        <?php echo $this->_var['order']['pay_time']; ?>
                     <?php endif; ?>
                 </div>
                <div class="dd_xiangqing_time_txt"><?php echo $this->_var['order']['shipping_time']; ?></div>
                <div class="dd_xiangqing_time_txt"><?php echo $this->_var['order']['shipping_time']; ?></div>
                <div class="dd_xiangqing_time_txts"><?php echo $this->_var['order']['finish_time']; ?></div>
            </div>
            
            
            <div class="dd_txt_name">订单详情：<?php echo $this->_var['order']['order_sn']; ?></div>  
            <div class="dd_txt_name">订单状态：
			<?php if ($this->_var['order']['order_status'] == 2 || $this->_var['order']['order_status'] == 3): ?>
			已取消
			<?php else: ?>
			<?php echo $this->_var['order_status']; ?>
			<?php endif; ?>
			</div>  
            <?php $_from = $this->_var['order_info']['stat_info']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'info');if (count($_from)):
    foreach ($_from AS $this->_var['info']):
?>
                
                <div class="dd_txt_name">订单详情：<?php echo $this->_var['info']; ?></div>  
            <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
			
			<?php if ($this->_var['order']['pay_status'] == 2): ?>
			<?php else: ?>
				<?php if ($this->_var['order_status'] == '无效订单'): ?>
				<?php elseif ($this->_var['order_status'] == '已审核'): ?>
				<?php elseif ($this->_var['order']['pay_name'] == '货到付款'): ?>
				<?php else: ?>
				<?php if ($this->_var['order']['order_amount'] > 0): ?><div class="dd_txt_btn" <?php echo $this->_var['order']['pay_online']; ?> ></div><?php endif; ?>
				<?php endif; ?>
			<?php endif; ?>
											
											
            <div class="dd_mains">
                <div class="dd_mains_name">收货信息</div>
                <div class="dd_main">
                    <div class="dd_main_txt">
                        <div class="dd_main_txt_left">收货人</div>
                        <div class="dd_main_txt_right"><?php echo $this->_var['order']['consignee']; ?></div>
                    </div>
                    <div class="dd_main_txt">
                        <div class="dd_main_txt_left">收货地址</div>
                        <div class="dd_main_txt_right"><?php echo $this->_var['order']['faddress']; ?></div>
                    </div>
                    <div class="dd_main_txt">
                        <div class="dd_main_txt_left">联系电话</div>
                        <div class="dd_main_txt_right"><?php echo $this->_var['order']['mobile']; ?></div>
                    </div>
                </div>
            </div> 
            
            
            <div class="dd_mains">
                <div class="dd_mains_name">配送及支付</div>
                <div class="dd_main">
                    <div class="dd_main_txt">
                        <div class="dd_main_txt_left">支付方式</div>
                        <div class="dd_main_txt_right"><?php echo $this->_var['order']['pay_name']; ?></div>
                    </div>
                    <div class="dd_main_txt">
                        <div class="dd_main_txt_left">配送方式</div>
                        <div class="dd_main_txt_right"><?php echo $this->_var['order']['shipping_name']; ?></div>
                    </div>
                    <div class="dd_main_txt">
                        <div class="dd_main_txt_left">配送要求</div>
                        <div class="dd_main_txt_right"><?php echo $this->_var['order']['best_time']; ?></div>
                    </div>
                </div>
            </div>
            
            
			<?php if ($this->_var['order']['inv_payee'] == ""): ?>
			<div class="dd_mains">
			<div class="dd_mains_name">发票信息</div>
                <div class="dd_main">不需要发票</div>
			</div>
			<?php else: ?>
            <div class="dd_mains">
                <div class="dd_mains_name">发票信息</div>
                <div class="dd_main">
                    <div class="dd_main_txt">
                        <div class="dd_main_txt_left">发票类型</div>
                        <div class="dd_main_txt_right"><?php echo $this->_var['order']['inv_type']; ?></div>
                    </div>
					<?php if ($this->_var['order']['inv_type'] == "增值税发票"): ?>
					<?php else: ?>
                    <div class="dd_main_txt">
                        <div class="dd_main_txt_left">发票抬头</div>
                        <div class="dd_main_txt_right"><?php echo $this->_var['order']['inv_payee']; ?></div>
                    </div>
                    <div class="dd_main_txt">
                        <div class="dd_main_txt_left">发票内容</div>
                        <div class="dd_main_txt_right"><?php echo $this->_var['order']['inv_content']; ?></div>
                    </div>
                    <div class="dd_main_txt">
                        <div class="dd_main_txt_left">发票寄送</div>
                        <div class="dd_main_txt_right"><span>寄送人:<?php echo $this->_var['order']['inv_username']; ?></span><span>寄送地址:<?php echo $this->_var['order']['inv_faddress']; ?></span><span>电话:<?php echo $this->_var['order']['inv_phone']; ?></span></div>
                    </div>
					<?php endif; ?>
                </div>
            </div>
			<?php endif; ?>
            
            <div class="shopping_cup">
            
	
	<div class="peisong_title_name" style="background-image:none; padding-top:20px;"><span>商品信息</span></div>
	<div class="shopping_cup_lanmu">
		<div class="shopping_cup_lanmu_left"></div>	
		<div class="shopping_cup_lanmu_cont">
			<div class="shopping_cup_name" style="margin-left:110px; display:inline;">名称规格</div>
			<div class="shopping_cup_name" style="margin-left:170px; display:inline;">单价</div>
			<div class="shopping_cup_name" style="margin-left:145px; display:inline;">数量</div>
			<div class="shopping_cup_name" style="margin-left:95px; display:inline;">小计</div>
			<div class="shopping_cup_name" style="margin-left:120px; display:inline;">积分</div> 
		</div>
		<div class="shopping_cup_lanmu_right"></div>
	</div>
	
  
	<div class="shopping_cup_neirong">
<?php $_from = $this->_var['goods_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'goods');if (count($_from)):
    foreach ($_from AS $this->_var['goods']):
?>
    <?php if ($this->_var['goods']['is_gift'] != 0): ?>
            <?php $this->assign('gift_remark','[赠品]'); ?>
    <?php else: ?>
            <?php $this->assign('gift_remark',''); ?>
    <?php endif; ?>  
	<div class="shopping_cup_div" id="tr_goods_<?php echo $this->_var['goods']['rec_id']; ?>">
	  <?php if ($this->_var['goods']['goods_id'] > 0 && $this->_var['goods']['extension_code'] != 'package_buy'): ?>
			<?php if ($this->_var['show_goods_thumb'] == 1): ?>
				<a href="goods.php?id=<?php echo $this->_var['goods']['goods_id']; ?>" target="_blank"><span style="color:#F00"><?php echo $this->_var['gift_remark']; ?></span><?php echo $this->_var['goods']['goods_name']; ?></a>
			<?php elseif ($this->_var['show_goods_thumb'] == 2): ?>
				<a href="goods.php?id=<?php echo $this->_var['goods']['goods_id']; ?>" target="_blank"><img src="<?php echo $this->_var['goods']['goods_thumb']; ?>" border="0" title="<?php echo htmlspecialchars($this->_var['goods']['goods_name']); ?>" /></a>
			<?php else: ?>
				<div class="shopping_cup_div_img">
					<a href="goods.php?id=<?php echo $this->_var['goods']['goods_id']; ?>" target="_blank"><img src="<?php echo $this->_var['goods']['goods_thumb']; ?>" border="0" title="<?php echo htmlspecialchars($this->_var['goods']['goods_name']); ?>" /></a><br />
				</div>
				<div class="shopping_cup_div_name">
				<div class="shopping_cup_div_name_txt">
					<a href="goods.php?id=<?php echo $this->_var['goods']['goods_id']; ?>" target="_blank" class="f6"><span style="color:#F00"><?php echo $this->_var['gift_remark']; ?></span><?php echo $this->_var['goods']['goods_name']; ?></a>
				</div>
				<div class="shopping_cup_div_name_txt" style="color:#4f9801;"><?php echo $this->_var['goods']['goods_attr']; ?></div>
			</div>
			<?php endif; ?>
            
	<?php elseif ($this->_var['goods']['goods_id'] > 0 && $this->_var['goods']['extension_code'] == 'package_buy'): ?>
			<a href="javascript:void(0)" onclick="setSuitShow(<?php echo $this->_var['goods']['goods_id']; ?>)" class="f6"><?php echo $this->_var['goods']['goods_name']; ?><span style="color:#FF0000;">（<?php echo $this->_var['lang']['remark_package']; ?>）</span></a>
			<div id="suit_<?php echo $this->_var['goods']['goods_id']; ?>" style="display:none">
				<?php $_from = $this->_var['goods']['package_goods_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'package_goods_list');if (count($_from)):
    foreach ($_from AS $this->_var['package_goods_list']):
?>
					<a href="goods.php?id=<?php echo $this->_var['package_goods_list']['goods_id']; ?>" target="_blank" class="f6"><?php echo $this->_var['package_goods_list']['goods_name']; ?></a><br />
				<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
			</div>
	<?php else: ?>
		<span style="color:#F00"><?php echo $this->_var['gift_remark']; ?></span><?php echo $this->_var['goods']['goods_name']; ?>
	<?php endif; ?>
		<div class="shopping_cup_div_price"><?php echo $this->_var['goods']['goods_price']; ?></div>
		<div class="shopping_cup_div_num">
			<?php echo $this->_var['goods']['goods_number']; ?>
		</div>
		<div class="shopping_cup_div_price"  style="color:#4f9801;" id="goods_subtotal_<?php echo $this->_var['goods']['rec_id']; ?>"><?php echo $this->_var['goods']['subtotal']; ?></div>
		<div class="shopping_cup_div_price"  style="color:#4f9801;"><?php echo $this->_var['goods']['give_integral']; ?></div>		
	</div>  

    
    <?php if ($this->_var['goods']['goods_present'] != ''): ?>
    <div class="shop_cup_zengpin">
    	<?php echo $this->_var['goods']['present_label']; ?>
        <span style="margin-left:15px;"><?php echo strip_tags($this->_var['goods']['goods_present']); ?></span>
    </div>
    <?php endif; ?>

<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
   

	
	<div class="fapiao_jiesuan" style="border-top:1px solid #cad0d0;border-bottom:0px hidden">
		<div class="peisong_title_name" style="background-image:none;"><span>结算信息</span></div>
		<div class="fapiao_tongji">
			商品总价：<span style="color:#509600;">￥<?php echo $this->_var['order']['goods_amount']; ?></span>
			+运费<span style="color:#509600;">￥<?php echo $this->_var['order']['shipping_fee']; ?></span>
			+发票运费<span style="color:#509600;" id="inv_fee">￥<?php echo $this->_var['order']['freight']; ?></span>
			<input id="fe_1" value="<?php echo $this->_var['order']['goods_amount']; ?>" type='hidden'>
			<input id="fe_2" value="<?php echo $this->_var['order']['shipping_fee']; ?>" type='hidden'>
			<input id="fe_3" value="<?php echo $this->_var['order']['order_amount']; ?>" type='hidden'>
			-优惠劵<span style="color:#509600;">￥<?php echo $this->_var['order']['bonus']; ?></span>
			-礼品卡<span style="color:#509600;">￥<?php echo $this->_var['order']['gift_card']; ?></span>    
			-积分<span style="color:#509600;"><?php echo $this->_var['order']['integral']; ?></span>
		</div>
		<div class="fapiao_zongji">
			应付金额：<span style="color:#509600; font-size:24px;">￥<?php echo $this->_var['order']['order_amount']; ?></span>
		</div>
	</div>
</div>
            

                  
        
        <?php else: ?> 
			
		  <div class="users_main">
    
			     <?php echo $this->fetch('library/user_menu.lbi'); ?>
			 
				 
				 <div class="users_main_right">
					
					<?php if ($this->_var['action'] == 'modify_passwd'): ?>
	
					    <div class="users_My_information">
	                     	密码管理
	                    </div>
					  <form id="formEditPassword" autocomplete="off" name="formPassword" action="user.php" method="post" onSubmit="return editPassword()" >
						
							<div class="users_bianji_inputs" style=" margin-top:35px; display:inline;">
								<div class="users_bianji_inputs_left"><?php echo $this->_var['lang']['old_password']; ?> </div>
								<div class="users_bianji_inputs_right">
									<input name="old_password" type="password" size="25"  class="inputBg" maxlength="20" />
								</div>
							</div>
							<div class="users_bianji_inputs" style=" margin-top:35px; display:inline;">
								<div class="users_bianji_inputs_left"><?php echo $this->_var['lang']['new_password']; ?> </div>
								<div class="users_bianji_inputs_right">
									<input name="new_password" type="password" size="25"  class="inputBg" maxlength="20"/>
								</div>
							</div>
							<div class="users_bianji_inputs" style=" margin-top:35px; display:inline;">
								<div class="users_bianji_inputs_left"><?php echo $this->_var['lang']['confirm_password']; ?> </div>
								<div class="users_bianji_inputs_right">
									<input name="comfirm_password" type="password" size="25"  class="inputBg" maxlength="20"/>
								</div>
							</div>
							<div class="users_bianji_btn" >
								<td colspan="2" align="center" bgcolor="#FFFFFF"><input name="act" type="hidden" value="act_edit_password" />
									<input name="submit" type="image" src="themes/default/images/user_bian_btn.jpg" value="" />
								</td>
							</div>
						
					  </form>
					 <?php endif; ?>
					 
					 
					 
					 <?php if ($this->_var['action'] == 'profile'): ?>
						
						<form id="edit_profile_form" name="formEdit" action="user.php" method="post" onSubmit="return actEditUser();">
						  <div class="users_bianji_name">用户名:<span style="padding-left:30px;"><?php echo $this->_var['profile']['user_name']; ?></span></div>
						  <div class="users_bianji_inputs">
	
	                     	<div class="users_bianji_inputs_left">昵称:</div>
	                     	<div class="users_bianji_inputs_right">
	                        	<input type="text" name="alias" value="<?php echo $this->_var['profile']['alias']; ?>"  maxlength="20"/>
	                        </div>
						  </div>
						  <div class="users_bianji_inputs" style="margin-top:30px; display:inline;">
	                     	<div class="users_bianji_inputs_left">出生日期:</div>
	                     	<div class="users_bianji_inputs_right">
								<?php echo $this->html_select_date(array('field_order'=>'YMD','prefix'=>'birthday','start_year'=>'-60','end_year'=>'+1','display_days'=>'true','month_format'=>'%m','day_value_format'=>'%02d','time'=>$this->_var['profile']['birthday'])); ?>
	                        </div>
	                       </div>
	                      <div class="users_bianji_tishi"></div>   
						  <div class="users_bianji_inputs">
								<div class="users_bianji_inputs_left">手机号码:</div>
								<div class="users_bianji_inputs_right">
								   
									<input type="text" name="mobile_phone" value="<?php echo $this->_var['profile']['mobile_phone']; ?>" <?php if ($this->_var['profile']['mobile_confirm'] == 1): ?>readonly="readonly"<?php endif; ?>/>
									
								</div>
                                <?php if ($this->_var['profile']['mobile_confirm'] == 1 && $this->_var['profile']['mobile_phone'] != ''): ?>
									   <a href="javascript:;" class="yanzheng_bangding">已绑定</a>                                       
                                 <?php else: ?>
										<a href="user.php?act=bindcell" class="yanzheng_bangding">绑定手机</a>
                                 <?php endif; ?>
						  </div>
						  <div class="users_bianji_inputs" style=" margin-top:30px; display:inline;">
								<div class="users_bianji_inputs_left">邮箱:</div>
								<div class="users_bianji_inputs_right">
									<input name="email" type="text" value="<?php echo $this->_var['profile']['email']; ?>" />
								</div>
                                <a href="javascript:;" class="yanzheng_bangding">绑定</a>
						  </div>
						  <div class="users_bianji_btn">
								<input name="act" type="hidden" value="act_edit_profile" />
								<input name="submit" type="image" src="themes/default/images/user_bian_btn.jpg"/>
						  </div>
	                    </form>
					 <?php endif; ?>
					 
					 
					 
					 
					 <?php if ($this->_var['action'] == 'paypoints'): ?>
						<div class="users_jifen">
							您当前的积分<span><?php echo $this->_var['paypoints']; ?></span>					
						</div>
						
						<div class="users_My_information" style="margin:20px 0px; display:inline;">
	                     	积分变动详情
	                    </div>

						 <div class="users_main_dingdan">
	                    	<div class="users_main_dingdan_title"></div>
	                        <div class="users_main_dingdan_bg">
	                        	<Div class="users_dingdanbg_left"></Div>
	                        	<Div class="users_dingdanbg_center">
	                            	<div style="width:185px;">时间</div>
	                                <div style="width:185px;">积分变动额</div>
	                                <div style="width:185px;">原因</div>
	                                
	                            </Div>
	                            <Div class="users_dingdanbg_right"></Div>
	                        </div>
							<div class="users_main_dingdantiao_main">
								<?php $_from = $this->_var['account_log']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'item');if (count($_from)):
    foreach ($_from AS $this->_var['item']):
?>
									<div class="users_main_dingdantiao">
										<div class="user_ddtiao_name" style="width:185px;"><?php echo $this->_var['item']['change_time']; ?></div>
										<div class="user_ddtiao_name" style="width:185px; color:#218813;"><?php echo $this->_var['item']['pay_points']; ?></div>
										<div class="user_ddtiao_name" style="width:300px;"><?php echo $this->_var['item']['change_desc']; ?></div>
										
									</div>
								<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
								
	
							</div>
							<?php echo $this->fetch('library/pages.lbi'); ?>
						</div>
					 <?php endif; ?>
					 
					 
					 
					 <?php if ($this->_var['action'] == 'address_list'): ?>
					    
						<div class="users_main_dingdan">
	                    	<div class="users_main_dingdan_title">收货地址</div>
	                        <div class="users_main_dingdan_bg">
	                        	<Div class="users_dingdanbg_left"></Div>
	                        	<Div class="users_dingdanbg_center">
	                            	<div style="width:70px;"></div>
	                            	<div style="width:110px;">姓名</div>
	                                <div style="width:200px; padding-right:20px;">地址</div>
	                                <div style="width:130px;">电话</div>
	                                <div style="width:120px;">设为默认</div>
	                                <div style="width:90px;">操作</div>
	                            </Div>
	                            <Div class="users_dingdanbg_right"></Div>
	                        </div>
	                        <div class="users_main_dingdantiao_main">
								<?php $_from = $this->_var['consignee_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'item');if (count($_from)):
    foreach ($_from AS $this->_var['item']):
?>
									<div class="users_main_dingdantiao" style="padding:5px 0px;">
										<div class="user_ddtiao_name" style="width:70px;"> <input type="checkbox" name="users_address" value="<?php echo $this->_var['item']['address_id']; ?>"/></div>
										<div class="user_ddtiao_name" style="width:110px;"><?php echo $this->_var['item']['consignee']; ?></div>
										<div class="user_ddtiao_name" style="width:200px; padding-right:20px; line-height:20px;"><?php echo $this->_var['item']['faddress']; ?></div>
										<div class="user_ddtiao_name" style="width:130px;"><?php echo $this->_var['item']['mobile']; ?></div>
										<div class="user_ddtiao_name" style="width:120px;">
											<input type="radio" name="radio" <?php if ($this->_var['item']['address_id'] == $this->_var['address']): ?>checked="checked"<?php endif; ?> onclick="javascript:setDefault(<?php echo $this->_var['item']['address_id']; ?>)" />
										</div>
										<div class="user_ddtiao_name" style="width:90px;"><a href="user.php?act=edit_address&id=<?php echo $this->_var['item']['address_id']; ?>">编辑</a></div>
									</div>
								<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
	                            
	                           
	                        </div>
							<div class="bianji_address_btn">
								<a href="javascript:void(0)" onclick="javascript:window.location.href=delete_addr()"><div class="bianji_delete_btn"></div></a>
								<a href="user.php?act=edit_address"><div class="bianji_save_btn"></div></a>
							</div>
							
	                    </div>
					 
					 <?php endif; ?>
					 
					 
					 
					 <?php if ($this->_var['action'] == 'edit_address'): ?>
						
						<script type="text/javascript">
							region.isAdmin = false;
							<?php $_from = $this->_var['lang']['flow_js']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'item');if (count($_from)):
    foreach ($_from AS $this->_var['key'] => $this->_var['item']):
?>
								var <?php echo $this->_var['key']; ?> = "<?php echo $this->_var['item']; ?>";
							<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
							
								onload = function() {
									(!document.all)
									{
										document.forms['theForm'].reset();
									}
								}
							
						</script>
						<form action="user.php" method="post" name="theForm" onsubmit="return checkConsignee(this)">
	
	                	 <div class="users_My_information">
	                     	收货地址
	                     </div>
	                     <div class="users_bianji_inputs" style="margin-top:25px; display:inline;">
	                     	<div class="users_bianji_inputs_left">收货人姓名</div>
	                     	<div class="users_bianji_inputs_right">
	                        	<input type="text" name="consignee" value="<?php echo $this->_var['consignee']['consignee']; ?>" maxlength="20" />
	                        </div>
	                     </div>
	                     
	                     <div class="users_bianji_inputs" style="margin-top:25px; display:inline;">
	                     	<div class="users_bianji_inputs_left">省市区</div>
	                     	<div class="users_bianji_inputs_right">
	                        	<select name="province" id="selProvinces" onchange="region.changed(this, 2, 'selCities')">
									
									<?php $_from = $this->_var['province_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'province');if (count($_from)):
    foreach ($_from AS $this->_var['province']):
?>
										<option value="<?php echo $this->_var['province']['region_id']; ?>" <?php if ($this->_var['consignee']['province'] == $this->_var['province']['region_id']): ?>selected<?php endif; ?>><?php echo $this->_var['province']['region_name']; ?></option>
									<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
	                              
									
								</select>
	                            <select name="city" id="selCities" onchange="region.changed(this, 3, 'selDisctricts')">
								
									<?php $_from = $this->_var['city_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'city');if (count($_from)):
    foreach ($_from AS $this->_var['city']):
?>
										<option value="<?php echo $this->_var['city']['region_id']; ?>" <?php if ($this->_var['consignee']['city'] == $this->_var['city']['region_id']): ?>selected<?php endif; ?>><?php echo $this->_var['city']['region_name']; ?></option>
									<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
	
									
								</select>
								<select name="district" id="selDisctricts" >
								
									<?php $_from = $this->_var['district_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'district');if (count($_from)):
    foreach ($_from AS $this->_var['district']):
?>
										<option value="<?php echo $this->_var['district']['region_id']; ?>" <?php if ($this->_var['consignee']['district'] == $this->_var['district']['region_id']): ?>selected<?php endif; ?>><?php echo $this->_var['district']['region_name']; ?></option>
									<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
	
									
								</select>
	                        </div>
	                     </div>  
	                     <div class="users_bianji_inputs" style="margin-top:25px; display:inline;">
	                     	<div class="users_bianji_inputs_left">详细地址</div>
	                     	<div class="users_bianji_inputs_right">
	                        	<input type="text" name="address" value="<?php echo $this->_var['consignee']['address']; ?>" maxlength="50"/>
	                        </div>
	                     </div> 
	                     <div class="users_bianji_inputs" style=" margin-top:25px; display:inline;">
	                     	<div class="users_bianji_inputs_left">联系电话</div>
	                     	<div class="users_bianji_inputs_right">
	                        	<input type="text" name="mobile" value="<?php echo $this->_var['consignee']['mobile']; ?>"  maxlength="11" />
	                        </div>
	                     </div> 
	                     <div class="users_save_address">
	                     	<div class="users_save_address_check">
								<input type="checkbox" name="isdefault" value='1' <?php if ($this->_var['consignee']['address_id'] == $this->_var['default_address_id']): ?>checked="checked"<?php endif; ?>/>
							</div>
	                        <div class="users_save_address_txt">设为默认地址</div>
	                     </div>
	                     
	                     <div class="users_bianji_btn">
                         	<input type="image" name="submit" src="themes/default/images/user_bian_btn.jpg"  />
                         </div>
						 	<input type="hidden" name="act" value="act_edit_address" />
						 	<input name="address_id" type="hidden" value="<?php echo $this->_var['consignee']['address_id']; ?>" />
						 
	
						 </form>
					 
					 <?php endif; ?>
					 
					 
					 
					 <?php if ($this->_var['action'] == 'account_detail'): ?>
					
						<div class="users_jifen">
	                    	<div class="jifen_txt">您当前的余额<span class="str"><?php echo $this->_var['surplus_amount']; ?></span></div>
	                        
	                    </div>
	                    <div class="users_My_information" style="margin:20px 0px; display:inline;">
	                     	余额变动详情
	                     </div>
	                     <!--<div class="time_sousuo">
	                     	<span>时间搜索：</span>
	                        <input type="text" class="Wdate" onclick="WdatePicker()" />
	                        <span>至</span>
	                        <input type="text" class="Wdate" onclick="WdatePicker()" />
	                     </div> -->
	                    	
	                    <div class="users_main_dingdan">
	                    	<div class="users_main_dingdan_title"></div>
	                        <div class="users_main_dingdan_bg">
	                        	<Div class="users_dingdanbg_left"></Div>
	                        	<Div class="users_dingdanbg_center">
	                            	<div style="width:185px;">余额变动额</div>
	                                <div style="width:185px;">变动后余额</div>
	                                <div style="width:185px;">原因</div>
	                                <div style="width:185px;">时间</div>
	                            </Div>
	                            <Div class="users_dingdanbg_right"></Div>
	                        </div>
	                        <div class="users_main_dingdantiao_main">
								 <?php $_from = $this->_var['account_log']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'item');if (count($_from)):
    foreach ($_from AS $this->_var['item']):
?>
	
									<div class="users_main_dingdantiao">
										<div class="user_ddtiao_name" style="width:185px; color:#218813;"><?php echo $this->_var['item']['amount']; ?></div>
										<div class="user_ddtiao_name" style="width:185px; color:#218813;"><?php echo $this->_var['item']['amount_money']; ?></div>
										<div class="user_ddtiao_name" style="width:185px;"><?php echo $this->_var['item']['short_change_desc']; ?></div>
										<div class="user_ddtiao_name" style="width:185px;"><?php echo $this->_var['item']['change_time']; ?></div>
									</div>
								<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
	
	                            
	
	                        </div>
	                    </div>    
	                 
					 <?php endif; ?>
					 
					 
					  
					 
					 <?php if ($this->_var['action'] == 'account_deposit'): ?>
						
	                	
						<div class="users_jifen">
	                    	<div class="jifen_txt">您当前的余额<span><?php echo $this->_var['surplus_amount']; ?></span></div>
	                    </div>
	                    <div class="users_My_information" style="margin:20px 0px; display:inline;">
	                     	在线支付
	                     </div>
						 <?php $_from = $this->_var['payment']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'list');if (count($_from)):
    foreach ($_from AS $this->_var['list']):
?>
							<Div class="zhifu_bank_lie">
								<div class="bank_input"><input type="radio" name="payment"/></div>
								<div class="bank_img"><img src="themes/default/images/bank.jpg" /></div>
							</Div>
	                     
						 <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
	                     <div class="chongzhi_num">
	                     	<span>充值金额(元)：</span><input type="text" />
	                     </div>
	                     
	                     <Div class="chongzhi_btn"><img src="themes/default/images/chongzhi_btn.jpg" /></Div>
	                     
	                    	
	                        
	                
					 <?php endif; ?>
					 

					 
					 <?php if ($this->_var['action'] == 'order_list'): ?>
						
	                    <div class="users_main_dingdan">
	                    	<div class="users_main_dingdan_title">我的订单</div>
	                        <div class="users_main_dingdan_bg">
	                        	<Div class="users_dingdanbg_left"></Div>
	                        	<Div class="users_dingdanbg_center">
	                            	<div style="width:200px;">订单</div>
	                                <div style="width:100px;">总金额</div>
	                                <div style="width:100px;">收货人</div>
	                                <div style="width:110px;">下单时间</div>
	                                <div style="width:110px;">订单状态</div>
	                                <div>操作</div>
	                            </Div>
	                            <Div class="users_dingdanbg_right"></Div>
	                        </div>
	                        <div class="users_main_dingdantiao_main">
								<?php $_from = $this->_var['orders']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'item');if (count($_from)):
    foreach ($_from AS $this->_var['item']):
?>
	                        	<div class="my_dingdan">
	                            	<div class="my_dingdan_one">
	                                	<div style="width:200px;"><?php echo $this->_var['item']['order_sn']; ?></div>
	                                    <div style="width:100px;"><?php echo $this->_var['item']['order_amount']; ?></div>
	                                    <div style="width:100px;"><?php echo $this->_var['item']['consignee']; ?></div>
	                                    <div style="width:110px;"><?php echo $this->_var['item']['order_time']; ?></div>
	                                    <div style="width:110px;">
										<?php if ($this->_var['item']['order_status'] == "无效订单"): ?>
										已取消
										<?php else: ?>
										<?php echo $this->_var['item']['order_status']; ?>
										<?php endif; ?>
										</div>
	                                    <div><a href="user.php?act=order_detail&order_id=<?php echo $this->_var['item']['order_id']; ?>">订单详情</a></div>
	                                </div>
	                            	<div class="my_dingdan_two">
	                                	<div class="dingdan_img">
											<?php $_from = $this->_var['item']['goods_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'items');if (count($_from)):
    foreach ($_from AS $this->_var['items']):
?>
											<a href="goods.php?id=<?php echo $this->_var['items']['goods_id']; ?>" target="_blank"><img src="<?php echo $this->_var['items']['goods_thumb']; ?>" /></a>
											<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
	                                    </div>
										
	                                    <div class="dingdan_baoguo" rel="bagName">
	                                    	<span style="font-size:14px;">跟踪包裹</span>
											
	                                        <div class="dingdan_dingwei">
												<?php $_from = $this->_var['item']['stat_info']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'infos');if (count($_from)):
    foreach ($_from AS $this->_var['infos']):
?>
	                                        	<div class="dingdan_txt">
	                                            	<div class="dingdan_txt_xiangxi"><?php echo $this->_var['infos']['add']; ?></div>
	                                            </div>
												<div class="dingdan_txt">
	                                            	<div class="dingdan_txt_xiangxi"><?php echo $this->_var['infos']['confirm']; ?></div>
	                                            </div>
												<div class="dingdan_txt">
	                                            	<div class="dingdan_txt_xiangxi"><?php echo $this->_var['infos']['paid']; ?></div>
	                                            </div>
												<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
	                                        </div>
											
	                                    </div>
	                                    <div class="dingdan_caozuo">
											<?php if ($this->_var['item']['pay_status'] == 2): ?>
	                                    	<div class="caozuo_txt"></div>
											<?php else: ?>
												<?php if ($this->_var['item']['order_status'] == '无效订单'): ?>
												<div class="caozuo_txt"></div>
												<?php elseif ($this->_var['item']['order_status'] == '已发货'): ?>
												<div class="caozuo_txt"></div>
												<?php else: ?>
												<div class="caozuo_txt"><a href="javascript:cancel_order(<?php echo $this->_var['item']['order_id']; ?>);" id="cancel_order_btn">取消订单</a></div>
													<?php if ($this->_var['item']['pay_name'] == "货到付款"): ?>
													<?php else: ?>
														<Div class="caozuo_btn" <?php echo $this->_var['item']['pay_online']; ?> ></Div>
													<?php endif; ?>
												<?php endif; ?>
											<?php endif; ?>
	                                    </div>
	                               	</div>
	                            </div>
	                            <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
	                        </div>
	                        <?php echo $this->fetch('library/pages.lbi'); ?>
	                    </div>
	                     
						
					 <?php endif; ?>
					 
					 
<script type="text/javascript">
	$(function(){
		$("[rel=bagName]").mouseover(function(){
			$(this).children().next("div").show();
		})
		$("[rel=bagName]").mouseout(function(){
			$(this).children().next("div").hide();
		})
	})
</script>
	<script>
	function cancel_order(order_id){
        if(confirm('您确定要取消定单吗?取消后此订单将视为无效订单'))
        {
            $.ajax({
                type:"POST",
                cache:"false",
                url:"user.php?act=cancel_order",
                data:'order_id='+order_id,
                success:function(data)
                {
					window.location.reload();
                },
                error:function()
                {
                    alert("取消失败!");
                }
            })
        }
	}
	</script>

					 
					 <?php if ($this->_var['action'] == "bonus"): ?>
					 
                     <div class="users_My_information">
                                                                激活优惠劵
                     </div>
                      
                     <div class="users_jihuolipin">
                        <div class="qiyegoumai_input_left">输入卡号:</div>
                        <div class="qiyegoumai_input_right_pay"><input type="type" name="bonus_sn" value="" maxlength="50"/></div>
                     </div>
                     
                     
                     <div class="users_jihuolipin">
                        <div class="qiyegoumai_input_left">输入验证码：</div>
                        <div class="qiyegoumai_input_right_yanzheng">
                        
                        <div class="yanzheng_kuang"><input type="text" name="bonus_captcha" value="" maxlength="4"/></div>
                        
                        <div class="login_yanzheng_right">
                            <div class="login_yanzheng_right_img"><img src="captcha.php?is_login=1&<?php echo $this->_var['rand']; ?>" style="vertical-align: middle;cursor: pointer;" onClick="this.src='captcha.php?captcha_activate=1&'+Math.random()" id="bonus_image_captcha"/></div>
                            <div class="login_yanzheng_right_txt" onclick="document.getElementById('bonus_image_captcha').src = 'captcha.php?captcha_activate=1&'+Math.random(); return false;">看不清楚</div>
                        </div>
                        </div>  
                     </div>
                     
                     <Div class="users_jihuo_btn" onclick="javascript:activate_bonus();"></Div>
                     
                     
                     
                     
                     <div class="jihuo_dingdan"> 
                          <div class="product_details_right_btn">
                                <div class="product_details_btn_yes" name="product_deta">未使用</div>
                                <div class="product_details_btn_no" name="product_deta">已使用</div>
                                <div class="product_details_btn_no" name="product_deta">已过期</div>
                                
                         </div>
						 
						 <?php echo $this->fetch('library/usercenter_nonuse_bonus.lbi'); ?>

                            <div class="users_main_dingdan" id="product_2" name="product_detas" style="display:none;">
                                 <div class="users_main_dingdan_bg" style="margin-top:20px; display:inline;">
                                    <Div class="users_dingdanbg_left"></Div>
                                    <Div class="users_dingdanbg_center">
                                        <div style="width:150px; padding:0px 20px;">编号</div> 
                                        <div style="width:180px;">名称</div>
                                        <div style="width:150px;">订单号</div>
                                        <div style="width:150px;">有效期</div> 
                                    </Div>
                                    <Div class="users_dingdanbg_right"></Div>
                                </div>
                                <div class="users_main_dingdantiao_main">
                                <?php $_from = $this->_var['bonus']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'item');if (count($_from)):
    foreach ($_from AS $this->_var['item']):
?>
                                    <?php if ($this->_var['item']['status'] == "已使用"): ?>
                                    <div class="users_main_dingdantiao">
                                        <div class="user_ddtiao_name" style="width:150px; padding:0px 20px;"><?php echo $this->_var['item']['bonus_sn']; ?></div>                                        
                                        <div class="user_ddtiao_name" style="width:180px; color:#4e9800;"><?php echo $this->_var['item']['type_name']; ?></div> 
                                        <div class="user_ddtiao_name" style="width:150px; color:#4e9800;"><?php echo $this->_var['item']['related_order_id']; ?></div>                                         
                                        <div class="user_ddtiao_name" style="width:150px;">
                                            至<span style="padding:0px 10px;"><?php echo $this->_var['item']['use_enddate']; ?></span>
                                        </div> 
                                    </div>
                                    <?php endif; ?>
                                 <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> 
                                                                
                                </div>
                            </div>
                            <div class="users_main_dingdan" id="product_3" name="product_detas" style="display:none;">
                                 <div class="users_main_dingdan_bg" style="margin-top:20px; display:inline;">
                                    <Div class="users_dingdanbg_left"></Div>
                                    <Div class="users_dingdanbg_center">
                                        <div style="width:150px; padding:0px 20px;">编号</div> 
                                        <div style="width:330px;">名称</div>
                                        <div style="width:150px;">有效期</div> 
                                    </Div>
                                    <Div class="users_dingdanbg_right"></Div>
                                </div>
                                <div class="users_main_dingdantiao_main">
                                <?php $_from = $this->_var['bonus']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'item');if (count($_from)):
    foreach ($_from AS $this->_var['item']):
?>
                                    <?php if ($this->_var['item']['status'] == "已过期"): ?>
                                    <div class="users_main_dingdantiao">
                                        <div class="user_ddtiao_name" style="width:150px; padding:0px 20px;"><?php echo $this->_var['item']['bonus_sn']; ?></div>                                        
                                        <div class="user_ddtiao_name" style="width:330px; color:#4e9800;"><?php echo $this->_var['item']['type_name']; ?></div> 
                                        <div class="user_ddtiao_name" style="width:150px;">
                                            至<span style="padding:0px 10px;"><?php echo $this->_var['item']['use_enddate']; ?></span>
                                        </div> 
                                    </div>
                                    <?php endif; ?>
                                 <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> 
                                                                
                                </div>
                            </div>
                     </div>
                     <script>
                     document.getElementById('bonus_image_captcha').src = 'captcha.php?captcha_activate=1&'+Math.random();
                     </script>
					 
					 <?php endif; ?>
					 
	                 
	                 
	                 
	                 <?php if ($this->_var['action'] == "charge"): ?>

						
                      <div class="users_My_information">
                        激活礼品卡
                     </div>
                     <div class="users_jihuolipin">
                        <div class="qiyegoumai_input_left">输入卡号:</div>
                        <div class="qiyegoumai_input_right_pay"><input type="type" name="bonus_sn"/></div>
                     </div>
                     
                     
                     <div class="users_jihuolipin">
                        <div class="qiyegoumai_input_left">输入验证码：</div>
                        <div class="qiyegoumai_input_right_yanzheng">
                        
                        <div class="yanzheng_kuang"><input type="text" name="bonus_captcha"/></div>
                        <div class="login_yanzheng_right">
                            <div class="login_yanzheng_right_img"><img src="captcha.php?is_login=1&<?php echo $this->_var['rand']; ?>" style="vertical-align: middle;cursor: pointer;" onClick="this.src='captcha.php?captcha_activate=1&'+Math.random()" id="bonus_image_captcha"/></div>
                            <div class="login_yanzheng_right_txt" onclick="document.getElementById('bonus_image_captcha').src = 'captcha.php?captcha_activate=1&'+Math.random(); return false;">看不清楚</div>
                            </div>
                        </div>  
                     </div>
                     
                    <Div class="users_jihuo_btn" onclick="javascript:activate_giftcard();"></Div>

                    <div class="jihuo_dingdan">  
                         <div class="product_details_right_btn">
                                <div class="product_details_btn_yes" name="product_deta">未用完</div>
                                <div class="product_details_btn_no" name="product_deta">已用完</div>
								<div class="product_details_btn_no" name="product_deta">已过期</div>
                        </div>
							<?php echo $this->fetch('library/usercenter_giftcard.lbi'); ?>

                            <div class="users_main_dingdan" id="product_2" style="display:none;" name="product_detas">
                                 <div class="users_main_dingdan_bg" style="margin-top:20px; display:inline;">
                                    <Div class="users_dingdanbg_left"></Div>
                                    <Div class="users_dingdanbg_center">
                                        <div style="width:150px; padding:0px 20px;">礼品卡号</div>
                                        <div style="width:150px;">面值</div>
                                        <div style="width:90px;">余额</div>
                                        <div style="width:150px;">订单号</div>
                                        <div style="width:150px;">有效期</div> 
                                    </Div>
                                    <Div class="users_dingdanbg_right"></Div>
                                </div>
								<div class="users_main_dingdantiao_main">
                                    <?php $_from = $this->_var['giftcard']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'item');if (count($_from)):
    foreach ($_from AS $this->_var['item']):
?>
                                    <?php if ($this->_var['item']['status'] == "已使用"): ?>
                                    <div class="users_main_dingdantiao">
                                        <div class="user_ddtiao_name" style="width:150px; padding:0px 20px;"><?php echo $this->_var['item']['bonus_sn']; ?></div>                                        
                                        <div class="user_ddtiao_name" style="width:150px; color:#4e9800;"><?php echo $this->_var['item']['type_money']; ?></div>
                                        <div class="user_ddtiao_name" style="width:90px; color:#4e9800;"><?php echo $this->_var['item']['bonus_balance']; ?></div>
                                        <div class="user_ddtiao_name" style="width:150px; color:#4e9800;"><?php echo $this->_var['item']['related_order_id']; ?></div>                                        
                                        <div class="user_ddtiao_name" style="width:150px;">
                                            至<span style="padding:0px 10px;"><?php echo $this->_var['item']['use_enddate']; ?></span>
                                        </div> 
                                    </div>
                                    <?php endif; ?>
                                    <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
                                </div>
							</div>
							<div class="users_main_dingdan" id="product_3" name="product_detas" style="display:none;">
                                 <div class="users_main_dingdan_bg" style="margin-top:20px; display:inline;">
                                    <Div class="users_dingdanbg_left"></Div>
                                    <Div class="users_dingdanbg_center">
                                        <div style="width:150px; padding:0px 20px;">编号</div> 
                                        <div style="width:330px;">名称</div>
                                        <div style="width:150px;">有效期</div> 
                                    </Div>
                                    <Div class="users_dingdanbg_right"></Div>
                                </div>
                                <div class="users_main_dingdantiao_main">
                                <?php $_from = $this->_var['giftcard']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'item');if (count($_from)):
    foreach ($_from AS $this->_var['item']):
?>
                                    <?php if ($this->_var['item']['status'] == "已过期"): ?>
                                    <div class="users_main_dingdantiao">
                                        <div class="user_ddtiao_name" style="width:150px; padding:0px 20px;"><?php echo $this->_var['item']['bonus_sn']; ?></div>                                        
                                        <div class="user_ddtiao_name" style="width:330px; color:#4e9800;"><?php echo $this->_var['item']['type_name']; ?></div> 
                                        <div class="user_ddtiao_name" style="width:150px;">
                                                                                                                            至<span style="padding:0px 10px;"><?php echo $this->_var['item']['use_enddate']; ?></span>
                                        </div> 
                                    </div>
                                    <?php endif; ?>
                                 <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>                           
                                </div>
                            </div>
                    </div>
                     <script>
                     document.getElementById('bonus_image_captcha').src = 'captcha.php?captcha_activate=1&'+Math.random();
                     </script>

	                 <?php endif; ?>
	                 
	                 
	                 
	                 <?php if ($this->_var['action'] == "bindcell"): ?>
	                 <div class="users_main_dingdan">
                        <div class="users_main_dingdan_title">手机绑定</div>
                        
                        <div class="bangding_main">
                            <div class="users_bianji_inputs">
                                <div class="users_bianji_inputs_left" style="margin-left:10px; display:inline;">手机号</div>
                                <div class="users_bianji_inputs_right">
                                    <input type="text" value="<?php echo $this->_var['cell']; ?>" name="cellphonenumber" maxlength="11"  onkeyup="value=value.replace(/[^0-9]/g,'');"/> 
                                        <input type="button" id="send_phone_code3" onclick="javascript:sendCode();" style="border:1px solid #646464; color:#0f0f0f; width:100px; cursor:pointer;" value="发送验证码"/>
										<input type="button" id="send_phone_code4" style="border:1px solid #646464; color:#0f0f0f; width:100px; cursor:pointer;display:none;" value="发送验证码" />
                                    </div>
                            </div>
                            <div class="users_bianji_inputs" style="margin-top:10px;">
                                <div class="users_bianji_inputs_left" style="margin-left:10px; display:inline;">验证码</div>
                                <div class="users_bianji_inputs_right">
                                    <input type="text" style="width:80px;" name="validateCode"/> 
                                    <input type="button" onclick="javascript:bindCell();" style="border:1px solid #646464; color:#0f0f0f; width:100px; cursor:pointer;" value="验证" /></div>
                            </div>
                        </div>
                        
                    </div>
	                 <?php endif; ?>
	                 
				 </div>
				 
			
		  </div>
		
		<?php endif; ?>
	</div>
	
</div>

        
</div>

<?php echo $this->fetch('library/page_footer.lbi'); ?>
</body>
<script type="text/javascript">
<?php $_from = $this->_var['lang']['clips_js']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'item');if (count($_from)):
    foreach ($_from AS $this->_var['key'] => $this->_var['item']):
?>
var <?php echo $this->_var['key']; ?> = "<?php echo $this->_var['item']; ?>";
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>


</script>
</html>
